import instance from "@/axios";

export function login(username, password) {
    return instance({
        url: '/login',
        method: 'POST',
        data: {
            username,
            password
        }
    })
}
export function getUserInfo() {
    return instance({
        url: "/admin/user/info",
        method: 'POST'
    })
}
export function updateAdminPassword(data) {
    return instance({
        url: "/admin/password/update",
        method: 'POST',
        data
    })
    return axios.post("/admin/password/update", data)
}

// import axios from "@/axios";

// // 登录接口
// export function login(username, password) {
//     return axios.post("/login", {username, password})
// }
